package com.hnas.trade.dao;

import java.util.List;

import org.springframework.stereotype.Component;

import com.hnas.core.dao.BaseDao;
import com.hnas.trade.dto.DTORecord;
import com.hnas.trade.orm.AbnormalOrder;

@Component("abnormalOrderDao")
public interface AbnormalOrderDao extends BaseDao<AbnormalOrder>{
	AbnormalOrder saveOrUpdate(AbnormalOrder vo) throws Exception;

	/**
	 * 查询某个时间段的异常交易记录
	 * @param startDate
	 * @param endDate
	 * @return
	 */
	List<String> findAllAbnormalTranSnoByDate(String startDate, String endDate);

	/**
	 * 通过条件查询异常交易记录
	 * @param account_id
	 * @param order_parent_type
	 * @param order_type
	 * @param date
	 * @param trade_status
	 * @return
	 */
	List<AbnormalOrder> findByCondition(String account_id, String order_parent_type, String order_type, String date,
			int pageNo,int pageSize,String trade_status,boolean isToDay);

	List<DTORecord> unionFindByCondition(String account_id, String order_parent_type, String order_type, String date,
			String trade_status,Integer pageNo,Integer pageSize,boolean isByDate);

	AbnormalOrder findByTranSno(String tranSno);

	/**
	 * 电子卡业务交易记录
	 * @Title: findTradeRecordList  
	 * @Description:  
	 * @param account_id
	 * @param cardNos
	 * @param order_parent_type
	 * @param order_type
	 * @param date
	 * @param trade_status
	 * @param pageNo
	 * @param pageSize
	 * @param isByDate
	 * @return
	 * @throws
	 */
	List<DTORecord> findTradeRecordList(String account_id, String cardNos, String order_parent_type, String order_type,
			String date, String trade_status, Integer pageNo, Integer pageSize, boolean isByDate);

	List<AbnormalOrder> findAbnormalOrderList(String account_id, String cardNos, String order_parent_type, String order_type, String date,
			int pageNo,int pageSize,String trade_status,boolean isToDay);
	
	
}
